home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software of the Month Club 1997 February
/
Software of the Month Club 1997 February.iso
/
pc
/
dos
/
edu
/
calc
/
fit1peak.bat
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
DOS Batch File
|
1996-10-28
|
338 b
|
11 lines
calc x = {-5,5,0.1}
calc y = 1.1*G((x-0.2)/1.3)+0.11+0.01*sin(3*x)
rem this is an example of fitting where user has to provide
rem initial valuse for amplitude A, peak position X and width W: G(A,X,W):
calc Fit(y,G(1,0,1)+0.1)
@pause
rem this is an example of auto-finding initial guess values:
calc Fit(y,G(?))
calc max(_-y)